/**
 * Copyright (c) 2005-2016, yinwer81 (yinwer81@aliyun.com)
 *
 * Licensed under the Apache License, Version 2.0
 */
package com.nozturn.throne.dao;

import java.util.List;

import com.nozturn.throne.entity.User;

public interface UserDao {

    User createUser(final User user);

    int updateUser(final User user);

    int deleteUser(final Long pk);

    User findByUsername(final String username);

    User findOne(final Long pk);

    List<User> findByUser(final User user);

    List<User> findAll();

    Long bindUserToClient(final Long clientPk, final Long userPk);

}
